﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Model;

public partial class Main : System.Web.UI.Page
{
    B_UserPlan bll = new B_UserPlan();
    protected void Page_Load(object sender, EventArgs e)
    {
        string strLogin = Session["LoginName"].ToString();
        IList<M_userPlan> lst = bll.GetList(strLogin);
        if (lst != null && lst.Count() > 0)
        {
            dtlstPlan.DataSource = lst;
            dtlstPlan.DataBind();
        }
    }
    protected void lnkLogin_Click(object sender, EventArgs e)
    {
        Response.Redirect("Login.aspx");
    }
    protected void lnkExit_Click(object sender, EventArgs e)
    {
        
    }
}